<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html lang="zh-cn">
<head>
 <base href="<%=basePath%>">
  
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
    <meta name="renderer" content="webkit">
    <title>网站信息</title>  
    <link rel="stylesheet" href="css/pintuer.css">
    <link rel="stylesheet" href="css/admin.css">
    <script type="text/javascript" src="js/upload.js"></script>
	<script type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
    <script src="js/jquery.js"></script>
    <script src="js/pintuer.js"></script> 
    <script src="js/selectdata.js"></script>
      <script src="js/Listdata.js"></script>
</head>
<body>
 <div class="panel admin-panel">
   
    <div class="panel-head"><strong class="icon-reorder"> 内容列表</strong> <a href="" style="float:right; display:none;">添加字段</a></div>
    <div class="padding border-bottom">
        <ul class="search" style="padding-left:10px;">
      <form   name="form1"  id="searchform"   method="post"   action="<%=path %>/admin/checkin_findCheckInList.action"  >   
 
        <li>请选择：</li>
        <li>
        学院
            <select  id="academySelect"  class="input" onchange="changeselect()" style="width:200px; line-height:17px; display:inline-block">
           <option value="">选择学院</option>
          </select>
          <input type="hidden" id="academyName" name="pageing.academy" />
            &nbsp;&nbsp;
          班级
            <select id="classSelect"  class="input" onchange="changeselect1()" style="width:200px; line-height:17px; display:inline-block">
            <option value="">选择班级</option>
          </select>
          <input type="hidden" id="className" name="pageing.stuClass" />
           &nbsp;&nbsp;
         课程
            <select id="courseSelect"  class="input" onchange="changeselect2()" style="width:200px; line-height:17px; display:inline-block">
            <option value="">选择课程</option>
          </select>
          <input type="hidden" id="courseName" name="pageing.course" />
        </li>
        <li>
          <input type="text" placeholder="最近更改时间" onfocus="WdatePicker()" id="time"
           name="pageing.time"  maxlength="10" size="12"
            readonly onclick="SelectDate( this, 'yyyy-MM-dd' )" 
            class="input" style="width:250px; line-height:17px;display:inline-block" />
        </li>
        <if condition="$iscid eq 1">
          <li>
           <a href="javascript:void(0)" class="button border-main icon-search" onclick="changesearch()"  > 搜索</a></li>
       
          </li>
        
          </li>
        </if>
        </form>
      </ul>
   
    </div>
    <table class="table table-hover text-center" id="voCheckIn" >
      <tr>
       <th>班级</th>
       <th>课程</th>
          <th >学号</th>
        <th width="20%">姓名</th>
        <th width="5%">请假</th>
        <th width="5%">迟到</th>
        <th width="5%">旷课</th>
        <th width="10%">最近更改时间</th>
         <th >操作</th>
      </tr>
      <s:iterator value="#request.pageFinder.dataList" id="stu">
      <tr>
        <td><s:property value="#stu.stuClass"/> </td>
          <td><s:property value="#stu.course"/> </td>
            <td><s:property value="#stu.stuNo"/></td>
            <td width='10%'><font color='#00CC99' size='5px'><s:property value="#stu.stuName"/></font></td>
            <td><s:property value="#stu.vacate"/></td>
           <td><s:property value="#stu.beLate"/></td>
           <td><s:property value="#stu.truancy"/></td>
             <td><s:property value="#stu.time"/></td>
           <td><div class="button-group"> 
           <a class="button border-main" href="<%=path %>/admin/checkin_findCheckInById.action?checkInId=${stu.id}"><span class="icon-edit"></span> 修改</a> 
           </div></td>
          </tr>
            </s:iterator>
       <tr>
        <td colspan="8"><div class="pagelist">
        <a href="<%=path %>/admin/checkin_findCheckInList.action?pageFinder.pageNo=1">首页</a>
         <a href="<%=path %>/admin/checkin_findCheckInList.action?pageFinder.pageNo=
         <s:if test="pageFinder.pageNo==1">${pageFinder.pageNo}</s:if>
         <s:else>${pageFinder.pageNo-1 }</s:else>">上一页</a>
          <span class="current">${pageFinder.pageNo}/${pageFinder.pageCount }</span>
          <a href="<%=path %>/admin/checkin_findCheckInList.action?pageFinder.pageNo=
          <s:if test="pageFinder.pageNo==pageFinder.pageCount">${pageFinder.pageCount}</s:if>
          <s:else>${pageFinder.pageNo+1 }</s:else>">下一页</a>
        <a href="<%=path %>/admin/checkin_findCheckInList.action?pageFinder.pageNo=${pageFinder.pageCount}">尾页</a>
           </div></td>
      </tr>
    </table>
    
  </div>
<script type="text/javascript">



function selectCheck(thisCheck){
}
//搜索
function changesearch(){
$("#searchform").submit();
}
function changeselect3(){
		$("#keywords").attr('name',$("#cid").val());
}




</script>
</body>
</html>